<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>今天日期显示</title>
    <script src="./1.js"></script>
</head>
<body>
<script type="module">

    // let date = new Date()
    // const y = date.getFullYear()
    // const m = date.getMonth()+1
    // const d = date.getDate()

    // // 这个方法是为了只有个位前面补0
    // function buling(n){
    //     return n.toString().length === 1 ? '0'+n:n
    // }

    // console.log(y+'-'+buling(m)+'-'+buling(d))


    let obj = {
        name:'ww',
        age:18
    }
    console.log(obj);
    

   
</script>
</body>
</html>
